<h2><?php echo $this->translate( 'back_in_stock' ) ?></h2>
<div class="content">
<?php if( $this->okcomm ) { 

	echo $this->translate( 'backinstock_okcomm' ) . '.<br /><a href="' . $this->baseUrl() . '/shop/item/id/'.$this->p_id . '">' . $this->translate( 'backinstock_backtoproduct' ) . '</a>';

} ?>

<?php if( $this->frm ) { ?>

<?php echo $this->inlineScript()->setScript( '$(document).ready(function(){
		
		$("#backinstock-form").validate({
			rules: {
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				email: "' . $this->translate( 'feedback_email_error' ) . '"
			}
		});
	});' ); ?>

	<form method="post" id="backinstock-form">
		<table id="feedback-table" class="mcenter mtop20" style="width:90%;">
		<tr>
		<td style="width:40%"><?php echo $this->translate( 'backinstock_email' ) ?>:</td>
		<td>
		<input class="style1" type="text" id="cemail" name="email" style="width:350px">
		<?php if( $this->error ) { ?>
			<label for="cemail" class="error"><?php echo $this->translate( 'feedback_email_error' ) ?></label>
		<?php } ?>
		</td>
		</tr>
		<tr>
		<td colspan="2" class="aright"><input id="backinstock-send" type="submit" name="" value="<?php echo $this->translate( 'backinstock_save' ); ?>" class="button2"></td>
		</tr>
		</table>
	</form>

<?php } ?>
</div>